package xyz.ddlnt.serviceusr.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xyz.ddlnt.model.dto.PostCommentAreaDTO;
import xyz.ddlnt.model.dto.PostCommentDTO;
import xyz.ddlnt.model.entity.PostComment;
import xyz.ddlnt.model.vo.MyCommentVO;
import xyz.ddlnt.model.vo.PostCommentVO;
import xyz.ddlnt.model.vo.ReplyCommentVO;

import java.util.List;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/25 14:17
 */
public interface PostCommentService extends IService<PostComment> {
    /**
     * 保存帖子评论
     * @param postCommentDTO
     * @return
     */
    Boolean savePostComment(PostCommentDTO postCommentDTO);

    /**
     * 获取帖子评论
     * @param postCommentAreaDTO
     * @return
     */
    List<PostCommentVO> getPostComment(PostCommentAreaDTO postCommentAreaDTO);

    /**
     * 获取我的评论
     * @param id
     * @return
     */
    List<MyCommentVO> getMyComment(Long id);

    /**
     * 获取回复的评论
     * @param id
     * @return
     */
    List<ReplyCommentVO> getReplyComment(Long id);
}
